<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试页面</title>
</head>
<body>
<div id="app"></div>
<div id="app1"></div>
<div id="app2"></div>
</body>
</html>
<script src="mock.js"></script>
<script src="extend/common.js"></script>
<script>
    //自定义扩展
    const ex = {}
    ex['bb'] = function (da) {
        return this.pick([1, 111])
    }
    Mock.Random.extend(ex)
    document.getElementById("app").innerText = Mock.mock("@code")
    document.getElementById("app1").innerText = Mock.mock("@code(['000','0001'])")
    document.getElementById("app2").innerText = Mock.mock("@email")

</script>
